import {
    Graph,
    Transformer,
    Join,
    Link,
    Rect
} from '../src/flow'
import * as joint from 'jointjs'
import $ from 'jquery'


var theme = 'black'

$('body').addClass(theme + '-theme')

var graph = new Graph({
    el: $('#paper'),
    width: 1000,
    height: 700,
    theme: theme,
    // style: 'compact', // 样式紧凑(GRID_WIDTH等调整)
    // readOnly: true, // 是否可编辑
})

// 外部拖控件到svg事件
$('.stage').on('dragend', e => {
    if (graph.isDroppedTarget()) {
        graph.createStartElement()
    }
})

var flowData = {
        "nodeList":[
            {
                "id":285148,
                "showName":"管理口径带息负债",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"OUTPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[
                        285252
                    ],
                    "dataSetName":"管理口径带息负债",
                    "tag":"",
                    "remark":"",
                    "dir":"d-1ac21cf3-02f2-418b-984b-ac52d41dd9fe",
                    "dirName":"融资情况分析"
                },
                "style":{
                    "x":3,
                    "y":2,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285149,
                "showName":"产权口径带息负债",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"OUTPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[
                        285162
                    ],
                    "dataSetName":"产权口径带息负债",
                    "tag":"",
                    "remark":"",
                    "dir":"d-1ac21cf3-02f2-418b-984b-ac52d41dd9fe",
                    "dirName":"融资情况分析"
                },
                "style":{
                    "x":3,
                    "y":1,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285152,
                "showName":"产权口径单位",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"INPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[

                    ],
                    "dataSetId":"18e5623d-f878-4f04-81b2-0cdf54425884",
                    "dataSetTable":"t_zhangchong_e4bf88e5",
                    "lastUpdateTime":1591709523000,
                    "isDataSetDelete":false
                },
                "style":{
                    "x":0,
                    "y":2,
                    "color":8
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285154,
                "showName":"带息负债",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"CLEAN",
                "taskArgs":{
                    "inComingNodes":[
                        285155
                    ]
                },
                "style":{
                    "x":1,
                    "y":1,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285155,
                "showName":"带息负债表数据",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"INPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[

                    ],
                    "dataSetId":"f4af41f6-4080-454a-8fe8-07a53b547e10",
                    "dataSetTable":"t_zhangchong_cb4463f2",
                    "lastUpdateTime":1597287294000,
                    "isDataSetDelete":false
                },
                "style":{
                    "x":0,
                    "y":1,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285161,
                "showName":"管理口径",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"CLEAN",
                "taskArgs":{
                    "inComingNodes":[
                        285250
                    ]
                },
                "style":{
                    "x":1,
                    "y":3,
                    "color":10
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285162,
                "showName":"产权口径带息负债",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"JOIN",
                "taskArgs":{
                    "inComingNodes":[
                        285154,
                        285251
                    ],
                    "joinType":"LEFT",
                    "joinFieldList":[
                        {
                            "joinSourceFieldName":"c_c202f0bb",
                            "joinTargetFieldName":"c_44d9e7e3"
                        }
                    ]
                },
                "style":{
                    "x":2,
                    "y":1,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285250,
                "showName":"管理口径单位",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"INPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[

                    ],
                    "dataSetId":"d3280fbd-add0-4b94-b53c-20b043497324",
                    "dataSetTable":"t_zhangchong_a94a29be",
                    "lastUpdateTime":1597287295000,
                    "isDataSetDelete":false
                },
                "style":{
                    "x":0,
                    "y":3,
                    "color":10
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285251,
                "showName":"产权单位",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"CLEAN",
                "taskArgs":{
                    "inComingNodes":[
                        285152
                    ]
                },
                "style":{
                    "x":1,
                    "y":2,
                    "color":8
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285252,
                "showName":"管理口径带息负债",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"JOIN",
                "taskArgs":{
                    "inComingNodes":[
                        285154,
                        285161
                    ],
                    "joinType":"LEFT",
                    "joinFieldList":[
                        {
                            "joinSourceFieldName":"c_c202f0bb",
                            "joinTargetFieldName":"c_fd2ac3f6"
                        }
                    ]
                },
                "style":{
                    "x":2,
                    "y":2,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":285253,
                "showName":"清理4",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"CLEAN",
                "taskArgs":{
                    "inComingNodes":[
                        285155
                    ]
                },
                "style":{
                    "x":1,
                    "y":0,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },{
                "id":285259,
                "showName":"清理41",
                "flowId":"8af9b79873e1a6370173e5bdee8e00cc",
                "nodeType":"MIDDLE",
                "taskType":"DIMENSION",
                "taskArgs":{
                    "inComingNodes":[
                        285155
                    ]
                },
                "style":{
                    "x":1,
                    "y":0,
                    "color":0
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":328620,
                "showName":"聚合4",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"DIMENSION",
                "taskArgs":{
                    "inComingNodes":[
                        329486
                    ]
                },
                "style":{
                    "x":4,
                    "y":3,
                    "color":10
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":329486,
                "showName":"2000-2040",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"INPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[

                    ],
                    "dataSetId":"d0c518c0-20ce-4a82-8a91-c0b3c7efd0f0",
                    "dataSetTable":null,
                    "dataSetType":1,
                    "lastUpdateTime":1589005413000,
                    "isDataSetDelete":false
                },
                "style":{
                    "x":0,
                    "y":5,
                    "color":2
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":329454,
                "showName":"2000-2040",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"INPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[

                    ],
                    "dataSetId":"d0c518c0-20ce-4a82-8a91-c0b3c7efd0f0",
                    "dataSetTable":null,
                    "dataSetType":1,
                    "lastUpdateTime":1589005413000,
                    "isDataSetDelete":false
                },
                "style":{
                    "x":0,
                    "y":5,
                    "color":2
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":343317,
                "showName":"graph-日期格式",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"INPUT",
                "taskType":null,
                "taskArgs":{
                    "inComingNodes":[

                    ],
                    "dataSetId":"4fbe3dea-80b4-4bfa-87de-ec49fc58ec1f",
                    "dataSetTable":null,
                    "dataSetType":1,
                    "lastUpdateTime":1588846080000,
                    "isDataSetDelete":false
                },
                "style":{
                    "x":0,
                    "y":4,
                    "color":4
                },
                "changeFlag":0,
                "editAble":true
            },
            {
                "id":343627,
                "showName":"聚合3",
                "flowId":"8af9b79873e1a6370173e5bdee8e001a",
                "nodeType":"MIDDLE",
                "taskType":"DIMENSION",
                "taskArgs":{
                    "inComingNodes":[
                        285161
                    ]
                },
                "style":{
                    "x":2,
                    "y":3,
                    "color":10
                },
                "changeFlag":0,
                "editAble":true
            }
        ],
        "nodeRelationList":[
            {
                "id":297094,
                "startId":285162,
                "endId":285149
            },
            {
                "id":299061,
                "startId":285252,
                "endId":285148
            },
            {
                "id":317903,
                "startId":329486,
                "endId":328620
            },
            {
                "id":317921,
                "startId":285161,
                "endId":343627
            },
            {
                "id":297093,
                "startId":285251,
                "endId":285162
            },
            {
                "id":299053,
                "startId":285152,
                "endId":285251
            },
            {
                "id":219121,
                "startId":285154,
                "endId":285162
            },
            {
                "id":297096,
                "startId":285155,
                "endId":285154
            },
            {
                "id":299058,
                "startId":285154,
                "endId":285252
            },
            {
                "id":299055,
                "startId":285155,
                "endId":285253
            },
            {
                "id":299055,
                "startId":285155,
                "endId":285259
            },
            {
                "id":297092,
                "startId":285161,
                "endId":285252
            },
            {
                "id":299023,
                "startId":285250,
                "endId":285161
            }
        ]
    }
var flowData1 = {
    "nodeList":[
        {
            "id":348721,
            "showName":"2-3-1过程一",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"INPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"68067977-f9af-41e5-8fe6-9dfd812fa552",
                "dataSetTable":"t_zhangchong_bb8c1aed",
                "dataSetType":1,
                "lastUpdateTime":1603011273000,
                "isDataSetDelete":false
            },
            "style":{
                "x":0,
                "y":5,
                "color":0
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":351014,
            "showName":"清理7",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"CLEAN",
            // "filterVOList":[
            //     {"accurate": true,"fieldShowName": "123","filterType":0,"fieldDataType":1},
            //     {"accurate": true,"fieldShowName": "45","filterType":13,"fieldDataType":3}
            // ],
            "taskArgs":{
                "inComingNodes":[
                    351019
                ]
            },
            "style":{
                "x":3,
                "y":0,
                "color":0
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":351015,
            "showName":"清理1",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"CLEAN",
            "taskArgs":{
                "inComingNodes":[
                    351024
                ]
            },
            "style":{
                "x":2,
                "y":1,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351016,
            "showName":"聚合1",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    351015
                ],
                "groupByFields":[
                    {
                        "fieldName":"c_46d5ea03",
                        "fieldShowName":"二级单位编码",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldExpr":"c_46d5ea03",
                        "fieldWithExpr":"c_46d5ea03"
                    },
                    {
                        "fieldName":"c_02224b14",
                        "fieldShowName":"二级单位名称",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldExpr":"c_02224b14",
                        "fieldWithExpr":"c_02224b14"
                    },
                    {
                        "fieldName":"c_ac0b94f7",
                        "fieldShowName":"监管类型",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldExpr":"c_ac0b94f7",
                        "fieldWithExpr":"c_ac0b94f7"
                    }
                ],
                "aggregations":[
                    {
                        "fieldName":"c_ac0b94f7",
                        "fieldShowName":"监管类型_计数",
                        "aggregationType":"count",
                        "dateExpr":null,
                        "highLevelType":null,
                        "phyFieldName":"c_ac0b94f7_count",
                        "normalCalType":null
                    }
                ]
            },
            "style":{
                "x":3,
                "y":1,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351017,
            "showName":"清理6",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"CLEAN",
            "taskArgs":{
                "inComingNodes":[
                    351028
                ]
            },
            "style":{
                "x":9,
                "y":0,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351018,
            "showName":"聚合2",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    348721
                ],
                "groupByFields":[
                    {
                        "fieldName":"c_d1df4738",
                        "fieldShowName":"业务时间",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"c_d1df4738",
                        "fieldExpr":"c_d1df4738"
                    },
                    {
                        "fieldName":"compName",
                        "fieldShowName":"单位名称",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"compName",
                        "fieldExpr":"compName"
                    },
                    {
                        "fieldName":"compId",
                        "fieldShowName":"组织ID",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"compId",
                        "fieldExpr":"compId"
                    }
                ],
                "aggregations":[

                ]
            },
            "style":{
                "x":1,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351019,
            "showName":"关联2",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"JOIN",
            "taskArgs":{
                "inComingNodes":[
                    351022,
                    348721
                ],
                "joinType":"RIGHT",
                "joinFieldList":[
                    {
                        "joinSourceFieldName":"c_2a56b988",
                        "joinTargetFieldName":"compId"
                    }
                ]
            },
            "style":{
                "x":2,
                "y":0,
                "color":0
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":351020,
            "showName":"2-3-1",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"OUTPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[
                    351027
                ],
                "dataSetName":"2-3-1",
                "tag":"",
                "remark":"",
                "dir":"d-1a1c5d6d-af17-452c-b21b-3ae21fd0c943",
                "dirName":"231"
            },
            "style":{
                "x":12,
                "y":0,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351021,
            "showName":"核算范围MDM属性数据对应表0921",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"INPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"7167fc6c-d677-445b-9fb9-df670d77336a",
                "dataSetTable":"t_zhangchong_f81ffcec",
                "dataSetType":1,
                "lastUpdateTime":1600759718000,
                "isDataSetDelete":false
            },
            "style":{
                "x":0,
                "y":4,
                "color":8
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":351022,
            "showName":"聚合5",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    351021
                ],
                "groupByFields":[
                    {
                        "fieldName":"c_0424daac",
                        "fieldShowName":"组织对象编码",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"c_0424daac",
                        "fieldExpr":"c_0424daac"
                    },
                    {
                        "fieldName":"c_3d3248d8",
                        "fieldShowName":"组织对象名称",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"c_3d3248d8",
                        "fieldExpr":"c_3d3248d8"
                    },
                    {
                        "fieldName":"c_b34e2051",
                        "fieldShowName":"二级单位名称",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"c_b34e2051",
                        "fieldExpr":"c_b34e2051"
                    },
                    {
                        "fieldName":"c_17894def",
                        "fieldShowName":"所属二级单位省份",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"c_17894def",
                        "fieldExpr":"c_17894def"
                    },
                    {
                        "fieldName":"c_2a56b988",
                        "fieldShowName":"组织编码",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldWithExpr":"c_2a56b988",
                        "fieldExpr":"c_2a56b988"
                    }
                ],
                "aggregations":[

                ]
            },
            "style":{
                "x":1,
                "y":4,
                "color":8
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":351023,
            "showName":"关联4",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"JOIN",
            "taskArgs":{
                "inComingNodes":[
                    351018,
                    351029
                ],
                "joinType":"LEFT",
                "joinFieldList":[
                    {
                        "joinSourceFieldName":"compId",
                        "joinTargetFieldName":"c_b109616c"
                    }
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351024,
            "showName":"zz核算范围、产权关系梳理20200926-更新-上传版-最新版3.0-核算范围0926更新",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"INPUT",
            "taskType":null,
            // "inputChangeVO": {
            //     "addFields": [
            //         {
            //             "dateExpre": "",
            //             "fieldExpr": "",
            //             "fieldName": "",
            //             "fieldShowName": "123",
            //             "fieldType": 0,
            //             "fieldWithExpr": ""
            //         },
            //         {
            //             "dateExpre": "",
            //             "fieldExpr": "",
            //             "fieldName": "",
            //             "fieldShowName": "987",
            //             "fieldType": 0,
            //             "fieldWithExpr": ""
            //         }
            //     ],
            //     "changeSimpleFields":[
            //         {
            //             "newField": {
            //                 "dateExpre": "",
            //                 "fieldExpr": "",
            //                 "fieldName": "",
            //                 "fieldShowName": "新",
            //                 "fieldType": 0,
            //                 "fieldWithExpr": ""
            //             },
            //             "oldField": {
            //                 "dateExpre": "",
            //                 "fieldExpr": "",
            //                 "fieldName": "",
            //                 "fieldShowName": "旧",
            //                 "fieldType": 0,
            //                 "fieldWithExpr": ""
            //             }
            //         },
            //         {
            //             "newField": {
            //                 "dateExpre": "",
            //                 "fieldExpr": "",
            //                 "fieldName": "",
            //                 "fieldShowName": "新1",
            //                 "fieldType": 0,
            //                 "fieldWithExpr": ""
            //             },
            //             "oldField": {
            //                 "dateExpre": "",
            //                 "fieldExpr": "",
            //                 "fieldName": "",
            //                 "fieldShowName": "旧1",
            //                 "fieldType": 0,
            //                 "fieldWithExpr": ""
            //             }
            //         }
            //     ],
            //     "dataSetDelete": true,
            //     "deleteFields": [
            //         {
            //             "dateExpre": "",
            //             "fieldExpr": "",
            //             "fieldName": "",
            //             "fieldShowName": "456",
            //             "fieldType": 0,
            //             "fieldWithExpr": ""
            //         },
            //         {
            //             "dateExpre": "",
            //             "fieldExpr": "",
            //             "fieldName": "",
            //             "fieldShowName": "26",
            //             "fieldType": 0,
            //             "fieldWithExpr": ""
            //         }
            //     ]
            // },
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"09f3b5e1-86c9-4904-b41a-a199092f9d8a",
                "dataSetTable":"t_zhangchong_c95a21f4",
                "dataSetType":1,
                "lastUpdateTime":1607399637000,
                "isDataSetDelete":false,
            },
            "style":{
                "x":0,
                "y":3,
                "color":6
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":351025,
            "showName":"行转列3",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"COLTOROW",
            "taskArgs":{
                "inComingNodes":[
                    351023
                ],
                "toRowCols":[
                    {
                        "fieldName":"c_ac0b94f7",
                        "fieldShowName":"监管类型",
                        "fieldType":1,
                        "dateExpr":null,
                        "fieldExpr":"c_ac0b94f7",
                        "fieldWithExpr":"c_ac0b94f7"
                    }
                ],
                "aggregations":[
                    {
                        "fieldName":"c_ac0b94f7_count",
                        "fieldShowName":"监管类型_计数",
                        "aggregationType":"sum",
                        "dateExpr":null,
                        "highLevelType":null,
                        "phyFieldName":null,
                        "normalCalType":null
                    }
                ],
                "groupByFields":[
                    "c_d1df4738",
                    "compName",
                    "compId",
                    "c_46d5ea03",
                    "c_02224b14"
                ]
            },
            "style":{
                "x":6,
                "y":2,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351026,
            "showName":"清理6",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"CLEAN",
            "taskArgs":{
                "inComingNodes":[
                    351025
                ]
            },
            "style":{
                "x":7,
                "y":2,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351027,
            "showName":"并集4",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"UNION",
            "taskArgs":{
                "inComingNodes":[
                    351017,
                    351030
                ],
                "colList":[
                    {
                        "colAlias":"业务时间",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_d1df4738",
                            "c_6d2a0f9d"
                        ]
                    },
                    {
                        "colAlias":"单位ID",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_46d5ea03",
                            "c_47ad499a"
                        ]
                    },
                    {
                        "colAlias":"单位名称",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_02224b14",
                            "c_a35b61f7"
                        ]
                    },
                    {
                        "colAlias":"指标",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_d3abff65",
                            "c_dc692d35"
                        ]
                    },
                    {
                        "colAlias":"跨区电网",
                        "dataType":"2",
                        "fieldNameList":[
                            "c_1ebfe95a",
                            "c_cf110d80"
                        ]
                    },
                    {
                        "colAlias":"区域电网",
                        "dataType":"2",
                        "fieldNameList":[
                            "c_7a892d6a",
                            "c_60dbc553"
                        ]
                    },
                    {
                        "colAlias":"省公司电网",
                        "dataType":"2",
                        "fieldNameList":[
                            "c_1846df46",
                            "c_6826ac3b"
                        ]
                    },
                    {
                        "colAlias":"小计",
                        "dataType":"2",
                        "fieldNameList":[
                            "c_4abf7dd0",
                            "c_d2b67b2c"
                        ]
                    },
                    {
                        "colAlias":"组织ID",
                        "dataType":"1",
                        "fieldNameList":[
                            "compId",
                            ""
                        ]
                    }
                ]
            },
            "style":{
                "x":10,
                "y":1,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351028,
            "showName":"并集3",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"UNION",
            "taskArgs":{
                "inComingNodes":[
                    351026,
                    351014
                ],
                "colList":[
                    {
                        "colAlias":"二级单位编码",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_46d5ea03",
                            "c_0424daac"
                        ]
                    },
                    {
                        "colAlias":"二级单位名称",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_02224b14",
                            "c_3d3248d8"
                        ]
                    },
                    {
                        "colAlias":"业务时间",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_d1df4738",
                            "c_d1df4738"
                        ]
                    },
                    {
                        "colAlias":"省公司电网",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_1846df46",
                            "f9"
                        ]
                    },
                    {
                        "colAlias":"跨区电网",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_1ebfe95a",
                            "f6"
                        ]
                    },
                    {
                        "colAlias":"区域电网",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_7a892d6a",
                            "f7"
                        ]
                    },
                    {
                        "colAlias":"小计",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_4abf7dd0",
                            "f4"
                        ]
                    },
                    {
                        "colAlias":"指标",
                        "dataType":"1",
                        "fieldNameList":[
                            "c_d3abff65",
                            "f1"
                        ]
                    },
                    {
                        "colAlias":"组织ID",
                        "dataType":"1",
                        "fieldNameList":[
                            "compId",
                            "compId"
                        ]
                    }
                ]
            },
            "style":{
                "x":8,
                "y":1,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351029,
            "showName":"关联3",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"MIDDLE",
            "taskType":"JOIN",
            "taskArgs":{
                "inComingNodes":[
                    351016,
                    351024
                ],
                "joinType":"LEFT",
                "joinFieldList":[
                    {
                        "joinSourceFieldName":"c_46d5ea03",
                        "joinTargetFieldName":"c_447e2f4e"
                    }
                ]
            },
            "style":{
                "x":4,
                "y":0,
                "color":0
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":351030,
            "showName":"2-3-1GW数据",
            "flowId":"8af9b7ad763fcc990176407cfc7f023f",
            "nodeType":"INPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"44306b79-1d3a-471d-b17a-31e1033c82f6",
                "dataSetTable":"t_zhangchong_47cda282",
                "dataSetType":1,
                "lastUpdateTime":1607399644000,
                "isDataSetDelete":false
            },
            "style":{
                "x":0,
                "y":6,
                "color":2
            },
            "changeFlag":0,
            "editAble":true
        }
    ],
    "nodeRelationList":[
        {
            "id":323720,
            "startId":351023,
            "endId":351025
        },
        {
            "id":323653,
            "startId":351015,
            "endId":351016
        },
        {
            "id":323641,
            "startId":348721,
            "endId":351019
        },
        {
            "id":323734,
            "startId":348721,
            "endId":351018
        },
        {
            "id":323688,
            "startId":351024,
            "endId":351029
        },
        {
            "id":323731,
            "startId":351021,
            "endId":351022
        },
        {
            "id":323621,
            "startId":351027,
            "endId":351020
        },
        {
            "id":324067,
            "startId":351022,
            "endId":351019
        },
        {
            "id":323699,
            "startId":351026,
            "endId":351028
        },
        {
            "id":323733,
            "startId":351028,
            "endId":351017
        },
        {
            "id":323742,
            "startId":351016,
            "endId":351029
        },
        {
            "id":323690,
            "startId":351030,
            "endId":351027
        },
        {
            "id":323624,
            "startId":351017,
            "endId":351027
        },
        {
            "id":324066,
            "startId":351029,
            "endId":351023
        },
        {
            "id":323695,
            "startId":351024,
            "endId":351015
        },
        {
            "id":323774,
            "startId":351019,
            "endId":351014
        },
        {
            "id":323646,
            "startId":351025,
            "endId":351026
        },
        {
            "id":323773,
            "startId":351014,
            "endId":351028
        },
        {
            "id":323745,
            "startId":351018,
            "endId":351023
        }
    ]
}

var flowData2 = {
    "nodeList":[
        {
            "id":285158,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":285287,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":285288,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":285290,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":285291,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":285295,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":285299,
            "showName":"并集1",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"UNION",
            "taskArgs":{
                "inComingNodes":[
                    343978,
                    343669
                ],
                "colList":[
                    {
                        "colAlias":"ELEC_TYPE",
                        "dataType":1,
                        "fieldNameList":[
                            "c_59e0aef1",
                            "c_59e0aef1"
                        ]
                    },
                    {
                        "colAlias":"INDICATOR",
                        "dataType":1,
                        "fieldNameList":[
                            "c_7a3e1990",
                            "c_7a3e1990"
                        ]
                    },
                    {
                        "colAlias":"THRESHOLD",
                        "dataType":2,
                        "fieldNameList":[
                            "c_cb857f46",
                            "c_cb857f46"
                        ]
                    },
                    {
                        "colAlias":"DATA_DATE",
                        "dataType":3,
                        "fieldNameList":[
                            "c_95552af4",
                            "c_95552af4"
                        ]
                    },
                    {
                        "colAlias":"RADIO",
                        "dataType":2,
                        "fieldNameList":[
                            "c_17ad5e68",
                            "c_17ad5e68"
                        ]
                    }
                ]
            },
            "style":{
                "x":2,
                "y":1,
                "color":2
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":285300,
            "showName":"输出1",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"OUTPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[
                    285299
                ]
            },
            "style":{
                "x":3,
                "y":1,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":285321,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":318391,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":318394,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":318398,
            "showName":"输出1",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"OUTPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[
                    285299
                ],
                "dataSetName":"输出1"
            },
            "style":{
                "x":3,
                "y":1,
                "color":2
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":318400,
            "showName":"并集4",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"UNION",
            "taskArgs":{
                "inComingNodes":[
                    285299,
                    343984
                ],
                "colList":[
                    {
                        "colAlias":"ELEC_TYPE",
                        "dataType":1,
                        "fieldNameList":[
                            "c_59e0aef1",
                            ""
                        ]
                    },
                    {
                        "colAlias":"INDICATOR",
                        "dataType":1,
                        "fieldNameList":[
                            "c_7a3e1990",
                            ""
                        ]
                    },
                    {
                        "colAlias":"THRESHOLD",
                        "dataType":2,
                        "fieldNameList":[
                            "c_cb857f46",
                            ""
                        ]
                    },
                    {
                        "colAlias":"DATA_DATE",
                        "dataType":3,
                        "fieldNameList":[
                            "c_95552af4",
                            ""
                        ]
                    },
                    {
                        "colAlias":"RADIO",
                        "dataType":2,
                        "fieldNameList":[
                            "c_17ad5e68",
                            ""
                        ]
                    },
                    {
                        "colAlias":"区域",
                        "dataType":1,
                        "fieldNameList":[
                            "",
                            "c_0b968b43"
                        ]
                    },
                    {
                        "colAlias":"目标值",
                        "dataType":2,
                        "fieldNameList":[
                            "",
                            "c_663be6f0"
                        ]
                    }
                ]
            },
            "style":{
                "x":3,
                "y":2,
                "color":2
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":318419,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":318428,
            "showName":"并集4",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"UNION",
            "taskArgs":{
                "inComingNodes":[
                    285299,
                    343984
                ],
                "colList":[
                    {
                        "colAlias":"ELEC_TYPE",
                        "dataType":1,
                        "fieldNameList":[
                            "c_59e0aef1",
                            ""
                        ]
                    },
                    {
                        "colAlias":"INDICATOR",
                        "dataType":1,
                        "fieldNameList":[
                            "c_7a3e1990",
                            ""
                        ]
                    },
                    {
                        "colAlias":"THRESHOLD",
                        "dataType":2,
                        "fieldNameList":[
                            "c_cb857f46",
                            ""
                        ]
                    },
                    {
                        "colAlias":"DATA_DATE",
                        "dataType":3,
                        "fieldNameList":[
                            "c_95552af4",
                            ""
                        ]
                    },
                    {
                        "colAlias":"RADIO",
                        "dataType":2,
                        "fieldNameList":[
                            "c_17ad5e68",
                            ""
                        ]
                    },
                    {
                        "colAlias":"区域",
                        "dataType":1,
                        "fieldNameList":[
                            "",
                            "c_0b968b43"
                        ]
                    },
                    {
                        "colAlias":"目标值",
                        "dataType":2,
                        "fieldNameList":[
                            "",
                            "c_663be6f0"
                        ]
                    }
                ]
            },
            "style":{
                "x":3,
                "y":2,
                "color":2
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":327956,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343174,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343669,
            "showName":"聚合2",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    343978
                ]
            },
            "style":{
                "x":1,
                "y":0,
                "color":0
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":343743,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343766,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343767,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343932,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343953,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343954,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":343978,
            "showName":"graph-日期格式1",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"INPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"619f15bc-0cf6-48da-9002-c105fe0b9959",
                "dataSetTable":null,
                "dataSetType":1,
                "lastUpdateTime":1591335572000,
                "isDataSetDelete":false
            },
            "style":{
                "x":0,
                "y":0,
                "color":0
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":343984,
            "showName":"负数-Sheet1",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"INPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"96595b67-a1bb-42e3-9f73-5b845e2c1874",
                "dataSetTable":null,
                "dataSetType":1,
                "lastUpdateTime":1598944693000,
                "isDataSetDelete":false
            },
            "style":{
                "x":0,
                "y":1,
                "color":2
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":343996,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344005,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344008,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344009,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344010,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344026,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344029,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344041,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344058,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344069,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344076,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344077,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344090,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344093,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344094,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344101,
            "showName":"聚合30",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[

                ]
            },
            "style":{
                "x":4,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344102,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344110,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344115,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344133,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344140,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344147,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344155,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344173,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344178,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344180,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344193,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344194,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344195,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344199,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        },
        {
            "id":344200,
            "showName":"聚合31",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"MIDDLE",
            "taskType":"DIMENSION",
            "taskArgs":{
                "inComingNodes":[
                    285295
                ]
            },
            "style":{
                "x":5,
                "y":2,
                "color":2
            },
            "changeFlag":3,
            "editAble":true
        }
    ],
    "nodeRelationList":[
        {
            "id":318368,
            "startId":343978,
            "endId":285299
        },
        {
            "id":318583,
            "startId":285295,
            "endId":344147
        },
        {
            "id":317504,
            "startId":343978,
            "endId":343669
        },
        {
            "id":318373,
            "startId":343669,
            "endId":285299
        },
        {
            "id":318416,
            "startId":285295,
            "endId":344140
        },
        {
            "id":318610,
            "startId":285295,
            "endId":344194
        },
        {
            "id":318626,
            "startId":285295,
            "endId":344173
        },
        {
            "id":318637,
            "startId":285295,
            "endId":344115
        },
        {
            "id":318525,
            "startId":285295,
            "endId":344133
        },
        {
            "id":318026,
            "startId":343984,
            "endId":318400
        },
        {
            "id":318314,
            "startId":285295,
            "endId":285287
        },
        {
            "id":318593,
            "startId":285295,
            "endId":344195
        },
        {
            "id":318374,
            "startId":285299,
            "endId":318398
        },
        {
            "id":299023,
            "startId":285299,
            "endId":318400
        },
        {
            "id":318021,
            "startId":285299,
            "endId":285300
        },
        {
            "id":318456,
            "startId":285295,
            "endId":344178
        },
        {
            "id":318513,
            "startId":285295,
            "endId":344102
        },
        {
            "id":318524,
            "startId":285295,
            "endId":344094
        },
        {
            "id":318584,
            "startId":285295,
            "endId":344199
        },
        {
            "id":318510,
            "startId":285295,
            "endId":344090
        },
        {
            "id":318543,
            "startId":285295,
            "endId":344110
        },
        {
            "id":317955,
            "startId":285299,
            "endId":318428
        },
        {
            "id":318565,
            "startId":285295,
            "endId":344200
        },
        {
            "id":318458,
            "startId":285295,
            "endId":344069
        },
        {
            "id":318592,
            "startId":285295,
            "endId":344155
        },
        {
            "id":318540,
            "startId":285295,
            "endId":344180
        },
        {
            "id":315043,
            "startId":285295,
            "endId":344193
        },
        {
            "id":317959,
            "startId":343984,
            "endId":318428
        },
        {
            "id":318523,
            "startId":285295,
            "endId":344093
        }
    ]
}
const flowData3 = {
    nodeList: [{
        "id":343978,
        "showName":"graph-日期格式1",
        "flowId":"8af9b7986dbe0c15016dd2236dd30032",
        "nodeType":"INPUT",
        "taskType":null,
        "taskArgs":{
            "inComingNodes":[

            ],
            "dataSetId":"619f15bc-0cf6-48da-9002-c105fe0b9959",
            "dataSetTable":null,
            "dataSetFrom": 'mySource',
            "dataSetType":17,
            "lastUpdateTime":1591335572000,
            "isDataSetDelete":false
        },
        "style":{
            "x":0,
            "y":0,
            "color":0
        },
        "changeFlag":0,
        "editAble":true
    },
        {
            "id":343979,
            "showName":"graph-日期格式1",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"INPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"619f15bc-0cf6-48da-9002-c105fe0b9959",
                "dataSetTable":null,
                "dataSetFrom": 'dataSource',
                "dataSetType":16,
                "lastUpdateTime":1591335572000,
                "isDataSetDelete":false
            },
            "style":{
                "x":1,
                "y":1,
                "color":0
            },
            "changeFlag":0,
            "editAble":true
        },
        {
            "id":343979,
            "showName":"graph-日期格式1",
            "flowId":"8af9b7986dbe0c15016dd2236dd30032",
            "nodeType":"INPUT",
            "taskType":null,
            "taskArgs":{
                "inComingNodes":[

                ],
                "dataSetId":"619f15bc-0cf6-48da-9002-c105fe0b9959",
                "dataSetTable":null,
                "dataSetFrom": 'dataSource',
                "dataSetType":17,
                "lastUpdateTime":1591335572000,
                "isDataSetDelete":false
            },
            "style":{
                "x":2,
                "y":2,
                "color":0
            },
            "changeFlag":0,
            "editAble":true
        }],

    "nodeRelationList":[
        {
            "id":297094,
            "startId":285162,
            "endId":285149
        },
        {
            "id":299061,
            "startId":285252,
            "endId":285148
        },
        {
            "id":317903,
            "startId":329486,
            "endId":328620
        },
        {
            "id":317921,
            "startId":285161,
            "endId":343627
        },
        {
            "id":297093,
            "startId":285251,
            "endId":285162
        },
        {
            "id":299053,
            "startId":285152,
            "endId":285251
        },
        {
            "id":219121,
            "startId":285154,
            "endId":285162
        },
        {
            "id":297096,
            "startId":285155,
            "endId":285154
        },
        {
            "id":299058,
            "startId":285154,
            "endId":285252
        },
        {
            "id":299055,
            "startId":285155,
            "endId":285253
        },
        {
            "id":299055,
            "startId":285155,
            "endId":285259
        },
        {
            "id":297092,
            "startId":285161,
            "endId":285252
        },
        {
            "id":299023,
            "startId":285250,
            "endId":285161
        }
    ]
}
var flowData4 = {
  "nodeList": [
    {
      "id": 164060,
      "showName": "销售情况分析（有空值）",
      "flowId": "8af9b78c8160a4b60181612ee7700005",
      "nodeType": "INPUT",
      "taskType": null,
      "taskArgs": {
        "inComingNodes": [],
        "dataSetId": "6d39c487-4f77-49aa-adb3-c66315f81efb",
        "dataSetTable": null,
        "dataSetFrom": "mySource",
        "dataSetType": 1,
        "lastUpdateTime": 1652325629000,
        "isDataSetDelete": false
      },
      "style": {
        "x": 0,
        "y": 0,
        "color": 0
      },
      "changeFlag": 0,
      "editAble": true,
      "filterVOList": null,
      "inputChangeVO": null,
      "nodeDataSetRelationDTO": null
    },
    {
      "id": 164068,
      "showName": "下级单位行级权限-Sheet1",
      "flowId": "8af9b78c8160a4b60181612ee7700005",
      "nodeType": "INPUT",
      "taskType": null,
      "taskArgs": {
        "inComingNodes": [],
        "dataSetId": "c050e488-fc09-4b91-a389-fa120403453f",
        "dataSetTable": null,
        "dataSetFrom": "dataSource",
        "dataSetType": 1,
        "lastUpdateTime": 1650270440000,
        "isDataSetDelete": false
      },
      "style": {
        "x": 0,
        "y": 1,
        "color": 4
      },
      "changeFlag": 0,
      "editAble": true,
      "filterVOList": null,
      "inputChangeVO": null,
      "nodeDataSetRelationDTO": null
    },
    {
      "id": 171738,
      "showName": "指标_营业收入",
      "flowId": "8af9b78c8160a4b60181612ee7700005",
      "nodeType": "INPUT",
      "taskType": null,
      "taskArgs": {
        "inComingNodes": [],
        "dataSetId": "acbe3656-f798-4e1e-9a7e-ae6466a457e4",
        "dataSetTable": null,
        "dataSetFrom": "dataSource",
        "dataSetType": 16,
        "lastUpdateTime": 1653743319000,
        "isDataSetDelete": false
      },
      "style": {
        "x": 0,
        "y": 2,
        "color": 6
      },
      "changeFlag": 0,
      "editAble": true,
      "filterVOList": null,
      "inputChangeVO": null,
      "nodeDataSetRelationDTO": null
    },
    {
      "id": 171834,
      "showName": "指标_利润总额",
      "flowId": "8af9b78c8160a4b60181612ee7700005",
      "nodeType": "INPUT",
      "taskType": null,
      "taskArgs": {
        "inComingNodes": [],
        "dataSetId": "476332c3-2920-4c5f-9f1a-1d09d740f2a3",
        "dataSetTable": null,
        "dataSetFrom": "mySource",
        "dataSetType": 16,
        "lastUpdateTime": 1653720188000,
        "isDataSetDelete": false
      },
      "style": {
        "x": 0,
        "y": 3,
        "color": "1"
      },
      "changeFlag": 0,
      "editAble": true,
      "filterVOList": null,
      "inputChangeVO": null,
      "nodeDataSetRelationDTO": null
    },
    {
      "id": 171851,
      "showName": "输出5",
      "flowId": "8af9b78c8160a4b60181612ee7700005",
      "nodeType": "OUTPUT",
      "taskType": null,
      "taskArgs": {
        "inComingNodes": [
          164060
        ],
        "dataSetName": "输出5"
      },
      "style": {
        "x": 1,
        "y": 0,
        "color": 0
      },
      "changeFlag": 0,
      "editAble": true,
      "filterVOList": null,
      "inputChangeVO": null,
      "nodeDataSetRelationDTO": null
    },
    {
      "id": 171855,
      "showName": "输出3",
      "flowId": "8af9b78c8160a4b60181612ee7700005",
      "nodeType": "OUTPUT",
      "taskType": null,
      "taskArgs": {
        "inComingNodes": [
          164068
        ],
        "dataSetName": "输出3"
      },
      "style": {
        "x": 1,
        "y": 1,
        "color": 4
      },
      "changeFlag": 0,
      "editAble": true,
      "filterVOList": null,
      "inputChangeVO": null,
      "nodeDataSetRelationDTO": null
    },
    {
      "id": 171871,
      "showName": "输出4",
      "flowId": "8af9b78c8160a4b60181612ee7700005",
      "nodeType": "OUTPUT",
      "taskType": null,
      "taskArgs": {
        "inComingNodes": [
          171738
        ],
        "dataSetName": "输出4"
      },
      "style": {
        "x": 1,
        "y": 2,
        "color": 6
      },
      "changeFlag": 0,
      "editAble": true,
      "filterVOList": null,
      "inputChangeVO": null,
      "nodeDataSetRelationDTO": null
    }
  ],
  "nodeRelationList": [
    {
      "id": 188979,
      "startId": 164060,
      "endId": 171851
    },
    {
      "id": 188266,
      "startId": 164068,
      "endId": 171855
    },
    {
      "id": 188767,
      "startId": 171738,
      "endId": 171871
    }
  ]
}
// flowData = {"nodeList":[{"style":{"color":0,"x":0,"y":0},"id":1,"showName":"起点","nodeType":"INPUT","taskType":null,"taskArgs":{"inComingNodes":[],"dataSetId":"","dataSetTable":null,"type":"spreadsheet"},"editAble":false},{"style":{"color":2,"x":1,"y":1},"id":3,"showName":"转置","nodeType":"MIDDLE","taskType":"TRANSPOSE","taskArgs":{"inComingNodes":[],"dataSetId":"","dataSetTable":null}},{"style":{"color":3,"x":3,"y":0},"id":4,"showName":"清洗三","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[],"outGoingNode":null}},{"style":{"color":4,"x":3,"y":1},"id":5,"showName":"清洗四","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[],"outGoingNode":null}},{"style":{"color":5,"x":4,"y":0},"id":6,"showName":"连接","editAble":true,"nodeType":"MIDDLE","taskType":"JOIN","taskArgs":{"joinType":"LEFT","inComingNodes":[],"outGoingNode":null}},{"style":{"color":6,"x":0,"y":2},"id":7,"showName":"起点二","nodeType":"INPUT","taskType":null,"taskArgs":{"type":"database","inComingNodes":[],"dataSetId":"","dataSetTable":null}},{"style":{"color":7,"x":1,"y":2},"id":8,"showName":"并集","nodeType":"MIDDLE","taskType":"UNION","taskArgs":{"inComingNodes":[]}},{"style":{"color":10,"x":5,"y":0},"id":9,"showName":"输出1","nodeType":"OUTPUT","taskType":null,"taskArgs":{"inComingNodes":[6]}},{"style":{"color":12,"x":5,"y":1},"id":10,"showName":"聚合1","nodeType":"MIDDLE","taskType":"DIMENSION","taskArgs":{"inComingNodes":[6]}},{"style":{"color":1,"x":2,"y":0},"id":"3d71c040-94fb-4bfa-ba6a-ffef0b797373","showName":"清理4","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[2]},"editAble":true},{"style":{"color":7,"x":2,"y":2},"id":"bfa36818-14be-4c6a-9f2e-e3a13af6f0b9","showName":"清理5","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[8]},"editAble":true}],"nodeRelationList":[{"type":"normal","startId":1,"endId":3},{"type":"normal","startId":1,"endId":8},{"type":"normal","startId":4,"endId":6},{"type":"normal","startId":5,"endId":6},{"type":"normal","startId":6,"endId":9},{"type":"normal","startId":6,"endId":10},{"type":"normal","startId":7,"endId":8},{"type":"normal","startId":8,"endId":"bfa36818-14be-4c6a-9f2e-e3a13af6f0b9"},{"type":"normal","startId":"3d71c040-94fb-4bfa-ba6a-ffef0b797373","endId":4},{"type":"normal","startId":"3d71c040-94fb-4bfa-ba6a-ffef0b797373","endId":5}]}
// flowData = {"nodeList":[{"style":{"color":0,"x":0,"y":0},"id":1,"showName":"起点","nodeType":"INPUT","taskType":null,"taskArgs":{"inComingNodes":[],"dataSetId":"","dataSetTable":null,"type":"spreadsheet"},"editAble":false},{"style":{"color":2,"x":1,"y":1},"id":3,"showName":"转置","nodeType":"MIDDLE","taskType":"TRANSPOSE","taskArgs":{"inComingNodes":[],"dataSetId":"","dataSetTable":null}},{"style":{"color":3,"x":4,"y":0},"id":4,"showName":"清洗三","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[],"outGoingNode":null}},{"style":{"color":4,"x":4,"y":1},"id":5,"showName":"清洗四","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[],"outGoingNode":null}},{"style":{"color":5,"x":7,"y":0},"id":6,"showName":"连接","editAble":true,"nodeType":"MIDDLE","taskType":"JOIN","taskArgs":{"joinType":"LEFT","inComingNodes":[],"outGoingNode":null}},{"style":{"color":6,"x":0,"y":2},"id":7,"showName":"起点二","nodeType":"INPUT","taskType":null,"taskArgs":{"type":"database","inComingNodes":[],"dataSetId":"","dataSetTable":null}},{"style":{"color":7,"x":1,"y":2},"id":8,"showName":"并集","nodeType":"MIDDLE","taskType":"UNION","taskArgs":{"inComingNodes":[]}},{"style":{"color":10,"x":8,"y":0},"id":9,"showName":"输出1","nodeType":"OUTPUT","taskType":null,"taskArgs":{"inComingNodes":[6]}},{"style":{"color":12,"x":8,"y":1},"id":10,"showName":"聚合1","nodeType":"MIDDLE","taskType":"DIMENSION","taskArgs":{"inComingNodes":[6]}},{"style":{"color":1,"x":3,"y":0},"id":"3d71c040-94fb-4bfa-ba6a-ffef0b797373","showName":"清理4","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[2]},"editAble":true},{"style":{"color":7,"x":2,"y":2},"id":"bfa36818-14be-4c6a-9f2e-e3a13af6f0b9","showName":"清理5","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[8]},"editAble":true},{"style":{"color":4,"x":5,"y":1},"id":"8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c","showName":"清理5","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":[5]},"editAble":true},{"style":{"color":4,"x":6,"y":1},"id":"7dbbbc81-9b97-4d4b-9e73-860f6a36e26c","showName":"清理6","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c"]},"editAble":true},{"style":{"color":4,"x":6,"y":2},"id":"23044383-a4f3-4b37-9a59-0b895c3f6370","showName":"清理7","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c"]},"editAble":true},{"style":{"color":4,"x":6,"y":3},"id":"ae1179a3-441b-4fe7-90f4-5bcaab9b5b0b","showName":"转置2","nodeType":"MIDDLE","taskType":"TRANSPOSE","taskArgs":{"inComingNodes":["8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c"]},"editAble":true},{"style":{"color":4,"x":7,"y":2},"id":"4306f14a-ca5e-4cf9-bc10-3dfae614346a","showName":"清理8","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["23044383-a4f3-4b37-9a59-0b895c3f6370"]},"editAble":true},{"style":{"color":4,"x":8,"y":2},"id":"e6c801a3-51fc-47cf-b461-77e2d5cd859c","showName":"清理9","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["4306f14a-ca5e-4cf9-bc10-3dfae614346a"]},"editAble":true},{"style":{"color":4,"x":9,"y":2},"id":"8e7875ce-1fc2-4c87-a6ee-e15603510a88","showName":"清理10","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["e6c801a3-51fc-47cf-b461-77e2d5cd859c"]},"editAble":true},{"style":{"color":4,"x":24,"y":2},"id":"3e6e5a97-8ac2-4856-96fc-270be918ee63","showName":"清理11","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["8e7875ce-1fc2-4c87-a6ee-e15603510a88"]},"editAble":true},{"style":{"color":4,"x":23,"y":3},"id":"58a6c354-9c0b-494d-b0ce-3c76f9ac8e44","showName":"清理12","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["8e7875ce-1fc2-4c87-a6ee-e15603510a88"]},"editAble":true},{"style":{"color":4,"x":10,"y":2},"id":"3abe22b4-a7be-4ae6-810e-fefee01af706","showName":"清理13","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["8e7875ce-1fc2-4c87-a6ee-e15603510a88"]},"editAble":true},{"style":{"color":4,"x":11,"y":2},"id":"a09035b6-cb87-460d-ac68-edb0b7c62e30","showName":"清理14","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["3abe22b4-a7be-4ae6-810e-fefee01af706"]},"editAble":true},{"style":{"color":4,"x":12,"y":2},"id":"c12f2cb8-21dc-494e-8c34-1130e62712e5","showName":"清理15","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["a09035b6-cb87-460d-ac68-edb0b7c62e30"]},"editAble":true},{"style":{"color":4,"x":13,"y":2},"id":"1cb4ce35-a3da-4008-8f12-ab48f31b4e44","showName":"清理16","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["c12f2cb8-21dc-494e-8c34-1130e62712e5"]},"editAble":true},{"style":{"color":4,"x":14,"y":2},"id":"d374af44-5f14-4d11-aefe-b72ac5ad5da9","showName":"清理17","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["1cb4ce35-a3da-4008-8f12-ab48f31b4e44"]},"editAble":true},{"style":{"color":4,"x":15,"y":2},"id":"fb0887e5-a3e9-4bd3-8355-507fadebb3cf","showName":"清理18","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["d374af44-5f14-4d11-aefe-b72ac5ad5da9"]},"editAble":true},{"style":{"color":4,"x":16,"y":2},"id":"fb20a4fb-098c-45ea-a088-728985da0f24","showName":"清理19","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["fb0887e5-a3e9-4bd3-8355-507fadebb3cf"]},"editAble":true},{"style":{"color":4,"x":17,"y":2},"id":"d3e6261f-1f8e-4f4b-801a-a9be0fb3c5fc","showName":"清理20","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["fb20a4fb-098c-45ea-a088-728985da0f24"]},"editAble":true},{"style":{"color":4,"x":18,"y":2},"id":"b98602ca-eb1a-45a8-be6e-2f3660799545","showName":"清理21","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["d3e6261f-1f8e-4f4b-801a-a9be0fb3c5fc"]},"editAble":true},{"style":{"color":4,"x":19,"y":2},"id":"ddba2a2e-fb33-4f16-be1f-b9868068bb36","showName":"清理22","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["b98602ca-eb1a-45a8-be6e-2f3660799545"]},"editAble":true},{"style":{"color":4,"x":20,"y":2},"id":"2f3cb753-88c4-499a-af2d-7132a76ce56d","showName":"清理23","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["ddba2a2e-fb33-4f16-be1f-b9868068bb36"]},"editAble":true},{"style":{"color":4,"x":21,"y":2},"id":"a68465f8-57ae-4ba3-9892-3df1de0de254","showName":"清理24","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["2f3cb753-88c4-499a-af2d-7132a76ce56d"]},"editAble":true},{"style":{"color":4,"x":22,"y":2},"id":"4d2378a2-e86e-4b37-ad34-546d1716954b","showName":"清理25","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["a68465f8-57ae-4ba3-9892-3df1de0de254"]},"editAble":true},{"style":{"color":4,"x":25,"y":2},"id":"d8c7ee49-9848-40e3-9e93-fe1b651558bc","showName":"清理26","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["3e6e5a97-8ac2-4856-96fc-270be918ee63"]},"editAble":true},{"style":{"color":4,"x":26,"y":2},"id":"037f8dbd-638d-4ded-aa2e-7bc77e667160","showName":"清理27","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["d8c7ee49-9848-40e3-9e93-fe1b651558bc"]},"editAble":true},{"style":{"color":4,"x":27,"y":2},"id":"80f195c6-02b4-42e2-8ad3-ec0e80ae9b74","showName":"清理28","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["037f8dbd-638d-4ded-aa2e-7bc77e667160"]},"editAble":true},{"style":{"color":4,"x":28,"y":2},"id":"e85df62c-242b-41f5-9592-4cf977c6a3cc","showName":"清理29","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["80f195c6-02b4-42e2-8ad3-ec0e80ae9b74"]},"editAble":true},{"style":{"color":4,"x":29,"y":2},"id":"a209b93a-dd1f-4d86-b246-fb5892aed8b1","showName":"清理30","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["e85df62c-242b-41f5-9592-4cf977c6a3cc"]},"editAble":true},{"style":{"color":4,"x":30,"y":2},"id":"333c54e5-7cfa-4f1f-b2d8-fbbfeb255ee7","showName":"清理31","nodeType":"MIDDLE","taskType":"CLEAN","taskArgs":{"inComingNodes":["a209b93a-dd1f-4d86-b246-fb5892aed8b1"]},"editAble":true}],"nodeRelationList":[{"type":"normal","startId":1,"endId":3},{"type":"normal","startId":1,"endId":8},{"type":"normal","startId":4,"endId":6},{"type":"normal","startId":5,"endId":"8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c"},{"type":"normal","startId":6,"endId":9},{"type":"normal","startId":6,"endId":10},{"type":"normal","startId":7,"endId":8},{"type":"normal","startId":8,"endId":"bfa36818-14be-4c6a-9f2e-e3a13af6f0b9"},{"type":"normal","startId":"3d71c040-94fb-4bfa-ba6a-ffef0b797373","endId":4},{"type":"normal","startId":"3d71c040-94fb-4bfa-ba6a-ffef0b797373","endId":5},{"type":"normal","startId":"8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c","endId":"7dbbbc81-9b97-4d4b-9e73-860f6a36e26c"},{"type":"normal","startId":"8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c","endId":"23044383-a4f3-4b37-9a59-0b895c3f6370"},{"type":"normal","startId":"8f1ccab3-2cc0-4feb-a7ea-2b532be8f45c","endId":"ae1179a3-441b-4fe7-90f4-5bcaab9b5b0b"},{"type":"normal","startId":"7dbbbc81-9b97-4d4b-9e73-860f6a36e26c","endId":6},{"type":"normal","startId":"23044383-a4f3-4b37-9a59-0b895c3f6370","endId":"4306f14a-ca5e-4cf9-bc10-3dfae614346a"},{"type":"normal","startId":"4306f14a-ca5e-4cf9-bc10-3dfae614346a","endId":"e6c801a3-51fc-47cf-b461-77e2d5cd859c"},{"type":"normal","startId":"bfa36818-14be-4c6a-9f2e-e3a13af6f0b9","endId":"3d71c040-94fb-4bfa-ba6a-ffef0b797373"},{"type":"normal","startId":"e6c801a3-51fc-47cf-b461-77e2d5cd859c","endId":"8e7875ce-1fc2-4c87-a6ee-e15603510a88"},{"type":"normal","startId":"8e7875ce-1fc2-4c87-a6ee-e15603510a88","endId":"3abe22b4-a7be-4ae6-810e-fefee01af706"},{"type":"normal","startId":"58a6c354-9c0b-494d-b0ce-3c76f9ac8e44","endId":"3e6e5a97-8ac2-4856-96fc-270be918ee63"},{"type":"normal","startId":"3abe22b4-a7be-4ae6-810e-fefee01af706","endId":"a09035b6-cb87-460d-ac68-edb0b7c62e30"},{"type":"normal","startId":"a09035b6-cb87-460d-ac68-edb0b7c62e30","endId":"c12f2cb8-21dc-494e-8c34-1130e62712e5"},{"type":"normal","startId":"c12f2cb8-21dc-494e-8c34-1130e62712e5","endId":"1cb4ce35-a3da-4008-8f12-ab48f31b4e44"},{"type":"normal","startId":"1cb4ce35-a3da-4008-8f12-ab48f31b4e44","endId":"d374af44-5f14-4d11-aefe-b72ac5ad5da9"},{"type":"normal","startId":"d374af44-5f14-4d11-aefe-b72ac5ad5da9","endId":"fb0887e5-a3e9-4bd3-8355-507fadebb3cf"},{"type":"normal","startId":"fb0887e5-a3e9-4bd3-8355-507fadebb3cf","endId":"fb20a4fb-098c-45ea-a088-728985da0f24"},{"type":"normal","startId":"fb20a4fb-098c-45ea-a088-728985da0f24","endId":"d3e6261f-1f8e-4f4b-801a-a9be0fb3c5fc"},{"type":"normal","startId":"d3e6261f-1f8e-4f4b-801a-a9be0fb3c5fc","endId":"b98602ca-eb1a-45a8-be6e-2f3660799545"},{"type":"normal","startId":"b98602ca-eb1a-45a8-be6e-2f3660799545","endId":"ddba2a2e-fb33-4f16-be1f-b9868068bb36"},{"type":"normal","startId":"ddba2a2e-fb33-4f16-be1f-b9868068bb36","endId":"2f3cb753-88c4-499a-af2d-7132a76ce56d"},{"type":"normal","startId":"2f3cb753-88c4-499a-af2d-7132a76ce56d","endId":"a68465f8-57ae-4ba3-9892-3df1de0de254"},{"type":"normal","startId":"a68465f8-57ae-4ba3-9892-3df1de0de254","endId":"4d2378a2-e86e-4b37-ad34-546d1716954b"},{"type":"normal","startId":"4d2378a2-e86e-4b37-ad34-546d1716954b","endId":"58a6c354-9c0b-494d-b0ce-3c76f9ac8e44"},{"type":"normal","startId":"3e6e5a97-8ac2-4856-96fc-270be918ee63","endId":"d8c7ee49-9848-40e3-9e93-fe1b651558bc"},{"type":"normal","startId":"d8c7ee49-9848-40e3-9e93-fe1b651558bc","endId":"037f8dbd-638d-4ded-aa2e-7bc77e667160"},{"type":"normal","startId":"037f8dbd-638d-4ded-aa2e-7bc77e667160","endId":"80f195c6-02b4-42e2-8ad3-ec0e80ae9b74"},{"type":"normal","startId":"80f195c6-02b4-42e2-8ad3-ec0e80ae9b74","endId":"e85df62c-242b-41f5-9592-4cf977c6a3cc"},{"type":"normal","startId":"e85df62c-242b-41f5-9592-4cf977c6a3cc","endId":"a209b93a-dd1f-4d86-b246-fb5892aed8b1"},{"type":"normal","startId":"a209b93a-dd1f-4d86-b246-fb5892aed8b1","endId":"333c54e5-7cfa-4f1f-b2d8-fbbfeb255ee7"}]}
graph.render(flowData4)
// graph.render(flowData1)
// graph.renderMinimap(flowData)

window.aaaa = graph

$('button').click(function(){
    graph.reflow(flowData4);
})

graph.on('click_node', (event, element) => {
    console.log(event, element)
})

// graph.on('click_blank', (event, element) => {
//     console.log(event, element)
// })

graph.on('insert_node', (event, element) => {
    console.log(event, element)
})

graph.on('reflow_node', () => {
    console.log('reflow')
})

graph.on('move_nodes', (event, element, e2) => {
    console.log('move_nodes', event, element, e2)
})

graph.on('relink_nodes', (event, element) => {
    console.log('relink_nodes', event, element)
})

graph.on('replace_input', (event, element) => {
    console.log('replace_input', event, element)
    window.eee = element
})


graph.on('overflow_error', (event) => {
    console.log('overflow_error')
})
// graph.paper.on('all', (a, b, c) => {
//     console.log(a, b, c)
// })
